package helloworld.delegate.news;

import helloworld.admin.bean.NewsAdminBean;
import helloworld.admin.service.news.NewsListService;
import helloworld.admin.service.news.NewsListServiceException;
/**
 *
 * @author TUYEN-DM
 * @version $Revision:   $ $Date: 2009/05/25  $
 */
public class NewsListDelegate 
{

	public NewsListDelegate() 
	{
	}

	public NewsAdminBean[] findNews(String newsTitle) throws NewsListServiceException
	{
		//Generally a EJB lookup on ServiceLocator goes here.
		//For simplicity, News List Service is just a POJO in our case
		
		NewsListService newsListService = new NewsListService();
		return newsListService.findNews(newsTitle);
	}
}